package com.yuxi.Entity;

import java.io.Serializable;

import javax.persistence.Column;

public class UserView implements Serializable {
	
	private int userId;
	private String userName;//用户名	
	private String userAccount;//用户工号
	private String userHeadPortait;//头像	
	private String phone;
	private String idNumber;
	private int createUserid;
	private long createTime;
	private String structId;
	private String structName;
	private int roleId;
	private String roleName;
	private boolean isEnable;
	private int positionId;
	private String positionName;
	
	
	public int getPositionId() {
		return positionId;
	}
	public void setPositionId(int positionId) {
		this.positionId = positionId;
	}
	public String getPositionName() {
		return positionName;
	}
	public void setPositionName(String positionName) {
		this.positionName = positionName;
	}
	public boolean isEnable() {
		return isEnable;
	}
	public void setEnable(boolean isEnable) {
		this.isEnable = isEnable;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserAccount() {
		return userAccount;
	}
	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}
	public String getUserHeadPortait() {
		return userHeadPortait;
	}
	public void setUserHeadPortait(String userHeadPortait) {
		this.userHeadPortait = userHeadPortait;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getIdNumber() {
		return idNumber;
	}
	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}
	public int getCreateUserid() {
		return createUserid;
	}
	public void setCreateUserid(int createUserid) {
		this.createUserid = createUserid;
	}
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	public String getStructId() {
		return structId;
	}
	public void setStructId(String structId) {
		this.structId = structId;
	}
	public String getStructName() {
		return structName;
	}
	public void setStructName(String structName) {
		this.structName = structName;
	}
	public int getRoleId() {
		return roleId;
	}
	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public UserView(int userId, String userName, String userAccount, String userHeadPortait, String phone,
			String idNumber, int createUserid, long createTime, String structId, String structName, int roleId,
			String roleName) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.userAccount = userAccount;
		this.userHeadPortait = userHeadPortait;
		this.phone = phone;
		this.idNumber = idNumber;
		this.createUserid = createUserid;
		this.createTime = createTime;
		this.structId = structId;
		this.structName = structName;
		this.roleId = roleId;
		this.roleName = roleName;
	}
	public UserView() {
		super();
	}
	@Override
	public String toString() {
		return "UserView [userId=" + userId + ", userName=" + userName + ", userAccount=" + userAccount
				+ ", userHeadPortait=" + userHeadPortait + ", phone=" + phone + ", idNumber=" + idNumber
				+ ", createUserid=" + createUserid + ", createTime=" + createTime + ", structId=" + structId
				+ ", structName=" + structName + ", roleId=" + roleId + ", roleName=" + roleName + "]";
	}
	public UserView(int userId, String userName, String userAccount, String userHeadPortait, String phone,
			String idNumber, int createUserid, long createTime, int roleId) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.userAccount = userAccount;
		this.userHeadPortait = userHeadPortait;
		this.phone = phone;
		this.idNumber = idNumber;
		this.createUserid = createUserid;
		this.createTime = createTime;
		this.roleId = roleId;
	}	
	
	public UserView(int userId, String userName, String userAccount, String userHeadPortait, String phone,
			String idNumber, int createUserid, long createTime,boolean isEnable,int roleId) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.userAccount = userAccount;
		this.userHeadPortait = userHeadPortait;
		this.phone = phone;
		this.idNumber = idNumber;
		this.createUserid = createUserid;
		this.createTime = createTime;
		this.isEnable=isEnable;
		this.roleId = roleId;
	}
	public UserView(int userId, String userName, String userAccount, String userHeadPortait, String phone,
			String idNumber, int createUserid, long createTime,  boolean isEnable, int roleId,String name,
			int positionId, String positionName,int structId,String structName) {
//		super();
		this.userId = userId;
		this.userName = userName;
		this.userAccount = userAccount;
		this.userHeadPortait = userHeadPortait;
		this.phone = phone;
		this.idNumber = idNumber;
		this.createUserid = createUserid;
		this.createTime = createTime;
		this.roleName=name;
		this.isEnable = isEnable;
		this.roleId = roleId;
		this.positionId = positionId;
		this.positionName = positionName;
		this.structId=Integer.toString(structId);
		this.structName=structName;
	}
	public UserView(int userId, String userName, String userAccount, String userHeadPortait, String phone,
			String idNumber, int createUserid, long createTime,  boolean isEnable, int roleId,
			int positionId, String positionName) {
//		super();
		this.userId = userId;
		this.userName = userName;
		this.userAccount = userAccount;
		this.userHeadPortait = userHeadPortait;
		this.phone = phone;
		this.idNumber = idNumber;
		this.createUserid = createUserid;
		this.createTime = createTime;
		this.isEnable = isEnable;
		this.roleId = roleId;
		this.positionId = positionId;
		this.positionName = positionName;

	}
	
	public UserView(int userId, String userName, String userAccount, String userHeadPortait, String phone,
			String idNumber, int createUserid, long createTime,  boolean isEnable, int roleId,String name,
			int positionId, String positionName) {
//		super();
		this.userId = userId;
		this.userName = userName;
		this.userAccount = userAccount;
		this.userHeadPortait = userHeadPortait;
		this.phone = phone;
		this.idNumber = idNumber;
		this.createUserid = createUserid;
		this.createTime = createTime;
		this.isEnable = isEnable;
		this.roleId = roleId;
		this.roleName=name;
		this.positionId = positionId;
		this.positionName = positionName;

	}
	public UserView(int userId, String userName, String userAccount, String userHeadPortait, String phone,
			String idNumber, int createUserid, long createTime, boolean isEnable) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.userAccount = userAccount;
		this.userHeadPortait = userHeadPortait;
		this.phone = phone;
		this.idNumber = idNumber;
		this.createUserid = createUserid;
		this.createTime = createTime;
		this.isEnable = isEnable;
	}

}
